#!/bin/bash

############################################################################
#
# 远程执行该脚本，请在命令行中直接执行以下命令：
#
#   curl -sSL https://gitee.com/tay3223/biubiubiu/raw/master/centos7-accelerate-pip.sh | /bin/bash
#
#
############################################################################

# 添加阿里的pip源
mkdir ~/.pip

#echo "[global]"                                                 >  ~/.pip/pip.conf
#echo "index-url = https://mirrors.aliyun.com/pypi/simple/"      >> ~/.pip/pip.conf
#echo "[install]"                                                >> ~/.pip/pip.conf
#echo "trusted-host = mirrors.aliyun.com"                        >> ~/.pip/pip.conf

tee ~/.pip/pip.conf <<EOF

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

EOF

echo -e "\n pip国内加速完成！\n"
